#define _CRT_SECURE_NO_WARNINGS 1



int convertInteger(int A, int B) {
    int dif = A ^ B;
    int count = 0;
    for (int i = 0; i < 32; ++i)
    {
        count += (dif >> i) & 1;
    }
    return count;
}
